import type { Plugin } from "vite";
import Vue from '@vitejs/plugin-vue';
import VueJSX from '@vitejs/plugin-vue-jsx';
import { seupMockPlugin } from "./mock";

function setupPlugins(isBuild: boolean = false): Plugin[] {
    const plugins = [Vue(), VueJSX()] as Plugin[];
    plugins.push(seupMockPlugin(isBuild));
    return plugins;
}

export default setupPlugins;